#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<int> findWordsContaining(vector<string>& words, char x) {
        vector<int> res;
        for (int i = 0; i < words.size(); i++)
        {
            if (-1 != words[i].find(x))
                res.push_back(i);
        }
        return res;
    }
};